import request from '@/utils/request'

// 借入借出开始
export function getBorrowLends(params) {
  return request({
    url: '/finance/borrow_lend/',
    method: 'GET',
    params
  })
}

export function addBorrowLend(data) {
  return request({
    url: '/finance/borrow_lend/',
    method: 'POST',
    data
  })
}

export function updateBorrowLend(data) {
  return request({
    url: `/finance/borrow_lend/${data.id}/`,
    method: 'PATCH',
    data
  })
}

export function delBorrowLend(data_id) {
  return request({
    url: `/finance/borrow_lend/${data_id}/`,
    method: 'DELETE',
  })
}

// 借入借出结束
